//
// Created by Administrator on 2023/7/28.
//
#include <vector>
#include <string>
#include <iostream>

using namespace std;


class Solution {
public:
    int countSeniors(vector<string> &details) {
        int count = 0;
        for (string &str: details) {
            int age = stoi(str.substr(11, 2));
            count += age > 60 ? 1 : 0;
        }
        return count;
    }
};

int main() {
    vector<string> details{"7868190130M7522", "5303914400F9211", "9273338290F4010"};
    Solution s;
    cout << s.countSeniors(details) << endl;
}